package com.conceal.client.service.impl;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.conceal.client.dao.ConcealWxOnlineMatchingMapper;
import com.conceal.client.service.ConcealWxOnlineMatchingService;
@Service
public class ConcealWxOnlineMatchingServiceImpl implements ConcealWxOnlineMatchingService {
	@Resource
	ConcealWxOnlineMatchingMapper concealWxOnlineMatchingMapper;

	/**
	 * 执行匹配
	 */
	@Override
	public Integer matching(String pid) {
		// TODO Auto-generated method stub
		Map<String,Object> map = new HashMap<>();
		map.put("pid", pid);
		Integer match = concealWxOnlineMatchingMapper.matching(map);
		return match;
	}
	/**
	 * 查出所有超时的带匹配对象
	 */
	@Override
	public String checkMatchTimedTask() {
		// TODO Auto-generated method stub
		return concealWxOnlineMatchingMapper.checkMatchTimedTask();
	}
}
